<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">
<h:head>
 	<link rel="stylesheet" href="#{facesContext.externalContext.requestContextPath}/resources/css/style.css" ></link>
</h:head>
<h:body>
	<div  class="homepage"  title="#{msg.addEclientPane}">
			<table width="100%" cellspacing="0" cellpadding="0" border="0">
				<tr>
					<td width="100%" height="70px"/>
				</tr>
				<tr>
					<td width="90%" height="300px">
						<table width="100%">
							<tr>
								<td  width="10px" height="50px"/>
								<td  width="90%"><h:form>	<div class="tabs-secondary">
											<ul class="tabs secondary">
												<li>
										   			<h:commandLink action="#{chantierController.retourAuChantier}"  value="Chantiers"/>
										   			</li>
									    		<li>
									    			<h:commandLink  action="#{clientController.retourAuClient}" value="Clients"/> </li>
												<li>
										   			<h:commandLink action="#{associeController.retourAuAssocie}"  value="Associés"/>
										   			</li>										    		
										   	    <li>
									    			<h:commandLink  action="#{userController.retourAuUser}" value="Utilisateurs Systeme"/> </li>
										   	</ul>
									  </div></h:form> 
								</td>
								<td/>
							</tr>
							<tr>
								<td  width="10px" height="50px"/>
								<td  width="90%">
									<h:outputText value="#{msg.ajouterclient}" styleClass="welcomeAuth" />
								</td>
								<td/>
							</tr>
							<tr>
								<td  width="5px" height="100px"/>
								<td  style="margin:0 auto;">		<h:form>
									<table border="0" width="100%">
										<tr style="height: 10px" />
										<tr>
											<td align="left" width="150px;"><h:outputLabel value="#{msg.nom}" /></td>
											<td align="left"><h:inputText value="#{clientController.client.nom}" size="25" /></td>
											<td align="left" width="150px;"><h:outputLabel value="#{msg.prenom}" /></td>
											<td align="left"><h:inputText value="#{clientController.client.prenom}" size="25" /></td>
										</tr>
										<tr>
											<td align="left" width="100px;">
											<h:outputLabel value="#{msg.type}" /></td>
											<td align="left"><h:inputText value="#{clientController.client.type}" /></td>
											<td align="left" width="100px;"><h:outputLabel value="#{msg.email}" /></td>
											<td align="left"><h:inputText value="#{clientController.client.email}" /></td>
										</tr>
										<tr>
											<td align="left" width="100px;"><h:outputLabel value="#{msg.telephone}" /></td>
											<td align="left"><h:inputText value="#{clientController.client.telephone}" /></td>
											<td align="left" width="100px;"><h:outputLabel value="#{msg.mobile}" /></td>
											<td align="left"><h:inputText value="#{clientController.client.mobile}" /></td>
										</tr>
										<tr>
										<td align="left" width="150px;"><h:outputLabel value="#{msg.fax}" /></td>
											<td align="left"><h:inputText value="#{clientController.client.fax}" /></td>
											<td align="left" width="150px;"><h:outputLabel value="#{msg.ville}" /></td>
											<td align="left"><h:inputText value="#{clientController.client.ville}" /></td>
										</tr>
										<tr>
											<td align="left" width="150px;"><h:outputLabel value="#{msg.adress}" /></td>
											<td align="left"><h:inputTextarea cols="50" rows="5" value="#{clientController.client.adress}" /></td>
										</tr>
									</table>
								<table border="0" width="100%">
									<tr style="height: 90px" />
									<tr>
										<td width="100px;" />
										<td style="vertical-align: center;"></td>
										<td align="right">
											<a4j:commandButton render="tabClient" value="#{msg.valider}" 
												action="#{clientController.saveOrUpdateClient}"/>
										</td>
										<td align="right" width="35px"><a4j:commandButton render="tabClient"
											value="#{msg.retour}" action="#{clientController.retourAuClient}" /></td>
									</tr>
								</table>
								</h:form>
								</td>
							<td  width="10px" height="100px">
						</td>
					</tr>
			</table>		
			</td>
				</tr>
			</table>		
	</div>
</h:body>
</html>